package net.celisdelafuente.java.Acacia.pages;

import org.apache.click.extras.control.Menu;

public class MenuBuilder {
	
	public Menu buildMenu() {
		Menu rootMenu = new Menu("rootMenu");
		rootMenu.add(createMenu("Home", "home.htm"));
		rootMenu.add(createMenu("Books", "books.htm"));
		return rootMenu;
	}

	private Menu createMenu(String label, String path) {
		Menu menu = new Menu();
		menu.setLabel(label);
		menu.setPath(path);
		menu.setTitle(label);
		return menu;
	}
}
